package cn.chinaiptv.apkmanager.dao;

import java.io.Serializable;
import java.lang.reflect.ParameterizedType;
import java.util.List;

import org.hibernate.Query;



public abstract class BaseDaoImpl<T>  {
	
	Class<T> clazz;
	
	public BaseDaoImpl(){
		ParameterizedType pt =  (ParameterizedType)this.getClass().getGenericSuperclass();//BaseDaoImpl<User>
		clazz = (Class<T>)pt.getActualTypeArguments()[0];
	}

	
	public void save(T entity) {
	}

	
	public void update(T entity) {
	}

	public void delete(Serializable id) {
	}

	public T findObjectById(Serializable id) {
		return null;

	}

	
	public List<T> findObjects() {
		return null;
	}
	
	
	public List<T> findObjects(String hql, List<Object> parameters) {
	
		return null;
	}

	

}
